package cc.comac.mom.service.impl.config;

import cc.comac.mom.api.config.EquipConnectConfigService;
import cc.comac.mom.api.config.EquipConnectParamService;
import cc.comac.mom.bean.config.EquipConnectConfigParamBean;
import cc.comac.mom.datahandlers.entity.config.EquipConnectConfigDataHandler;
import cc.comac.mom.datahandlers.entity.config.EquipConnectParamDataHandler;
import cc.comac.mom.entity.config.EquipConnectConfigEntity;
import cc.comac.mom.util.ResultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Service
@RestController
public class EquipConnectParamServiceImpl implements EquipConnectParamService {

	@Autowired
	private EquipConnectParamDataHandler equipConnectParamDataHandler;

	@Override
	public ResultBean selectByParamKey(String paramKey) {
		ResultBean resultBean = new ResultBean(true);
		resultBean.setObject( equipConnectParamDataHandler.selectByParamKey(paramKey));
		return resultBean;
	}
}
